home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
089a.dms
/
089a.adf
/
EXAMPLE_PROGRAMS
/
example18.AMOS
/
example18.amosSourceCode
Wrap
AMOS Source Code
|
1992-03-06
|
964b
|
41 lines
'=================
Rem example18.amos
'=================
'A small but useful procedure you could call from your programs
'see chapter 18 for more details
Rem this calls the procedure
'---------------------------
_SYSTEMSTATUS
Rem the procedure itself.
'------------------------
Procedure _SYSTEMSTATUS
Curs Off
Paper 0
Cls 0
Under On
Print "SYSTEM STATUS : BYTES"
Under Off
Print
Rem Set the current drive to be df0: the internal drive EVERYONE has
'-------------------------------------------------------------------
Dir$="df0:"
Pen 5
Print "DISK SPACE DF0:";Dfree
Rem Check to see if the user has a second drive and if so show space on it
'-------------------------------------------------------------------------
A=Exist("DF1:") : If A=-1 Then Dir$="df1:" : Print "DISK SPACE DF1:";Dfree
Print "FAST MEM FREE :";Fast Free
Print "CHIP MEM FREE :";Chip Free
Print "TOTAL MEM FREE:";Chip Free+Fast Free
Print "VARIABLE SPACE:";Free
End Proc